home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
curstate.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
2KB
|
63 lines
/* RCSVER $Id: curstate.sql,v 1.5 1999-08-02 14:32:17-05 randy CURRENT $ */
/* *************************************************************************
* Copyright (C) 1999, Agent Systems, Inc. All Rights Reserved.
*
* Name: curstate.sql
* Date: 02/23/1999
* memo: Randy Wood
* Description: Create the curstate table.
* Changes:
************************************************************************* */
CREATE TABLE curstate
(
det_seq_num NUMBER(38)
CONSTRAINT ref1_curstate REFERENCES mstrrec(det_seq_num),
farebox_glid NUMBER(38),
conv_date DATE, /* Date for this record */
update_time DATE,
power_fail_time DATE,
is_cashbox_access_door_open NUMBER(1),
is_cashbox_present NUMBER(1),
is_cashbox_latched NUMBER(1),
previous_cashbox_id VARCHAR2(20),
current_cashbox_id VARCHAR2(20),
is_jam_clearance_door_open NUMBER(1),
is_jam_clearance_alarm_active NUMBER(1),
is_alarm_active NUMBER(1),
last_alarm_reason NUMBER(38),
bus_id NUMBER(38),
garage_id NUMBER(38),
farebox_id NUMBER(38),
route NUMBER(38),
run NUMBER(38),
trip NUMBER(38),
fare_set NUMBER(38),
is_primary_shift_open NUMBER(1),
primary_user_id NUMBER(38),
primary_user_password NUMBER(38),
primary_user_security NUMBER(38),
is_relief_shift_open NUMBER(1),
relief_user_id NUMBER(38),
relief_user_password NUMBER(38),
relief_user_security NUMBER(38),
relief_shift_seq NUMBER(38),
upr_total_amount NUMBER(38),
revenue_service_seq NUMBER(38),
probing_seq NUMBER(38),
primary_shift_seq NUMBER(38),
event_seq_num NUMBER(38),
trace_seq_num NUMBER(38),
rejected_coins_reset NUMBER(38),
rejected_bills_reset NUMBER(38),
rejected_coins_total NUMBER(38),
rejected_bills_total NUMBER(38),
revenue_serv_time DATE,
reporting_flag NUMBER(1),
probe_context_id NUMBER(38),
op_context_id NUMBER(38),
driver_context_id NUMBER(38),
fare_context_id NUMBER(38),
power_fail_count NUMBER(38),
CONSTRAINT pk_curstate PRIMARY KEY (det_seq_num)
);